package com.kf.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import com.kf.pojo.User;

@Mapper
public interface UserMapper {
	
	@Select("select * from users where username=#{username}")
	public User getByUserName(@Param("username")String userName);
	
	@Select("select * from users where id=#{id}")
	public User findById(@Param("id")Integer id);

}
